home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / borland / bc30p2.zip / PATINIT.BAT < prev    next >
DOS Batch File  |  1992-02-05  |  1KB  |  68 lines

  1. echo OFF
  2. echo
  3. echo This batch file will fix the problem with initializing variables in
  4. echo an initializer list, for BC, BCC, and TCW.
  5. echo
  6. echo You must be on the directory where BC, BCC and TCW reside in order
  7. echo run this batch file successfully.  The PATCH.COM file provided with
  8. echo this patch package should also reside on this directory.
  9. echo 
  10. pause
  11.  
  12. if not exist patch.com goto HELP0
  13. :BC
  14. if not exist bc.exe goto HELP1
  15. patch patbc bc.exe > nul
  16. if ERRORLEVEL 1 goto BC2
  17. goto BCC
  18. :BC2
  19. patch patbc2 bc.exe > nul
  20. if ERRORLEVEL 1 goto BC3
  21. goto BCC
  22. :BC3
  23. echo BC.EXE is incorrect version or is already patched
  24.  
  25.  
  26. :BCC
  27. if not exist bcc.exe goto HELP2
  28. patch patbcc bcc.exe
  29. if ERRORLEVEL 1 echo (in file BCC.EXE)
  30.  
  31. :TCW
  32. if not exist tcw.exe goto HELP3
  33. patch pattcw tcw.exe > nul
  34. if ERRORLEVEL 1 goto TCW2
  35. goto DONE
  36. :TCW2
  37. patch pattcw2 tcw.exe > nul
  38. if ERRORLEVEL 1 goto TCW3
  39. goto DONE
  40. :TCW3
  41. echo TCW.EXE is incorrect version or is already patched
  42. goto DONE
  43.  
  44. :HELP0
  45. echo 
  46. echo ERROR:  unable to find PATCH.COM.  Aborting batch file!
  47. echo
  48. goto DONE:
  49.  
  50. :HELP1
  51. echo
  52. echo WARNING:  unable to find BC.EXE
  53. echo
  54. goto BCC
  55.  
  56. :HELP2
  57. echo
  58. echo WARNING:  unable to find BCC.EXE
  59. echo
  60. goto TCW
  61.  
  62. :HELP3
  63. echo
  64. echo WARNING:  unable to find TCW.EXE
  65. echo
  66.  
  67. :DONE
  68.